/*
 * user_spi_driver.h
 *
 *  Created on: Jan 30, 2023
 *      Author: dk007
 */

#ifndef USER_DRIVER_INC_USER_SPI_DRIVER_H_
#define USER_DRIVER_INC_USER_SPI_DRIVER_H_

void nfc_spi_init(void);
void nfc_spi_uninit(void);
void spi_nss_h(void);
void spi_nss_l(void);
uint8_t spi_read_write(
                    uint8_t * pTxBuffer,
                    uint16_t wTxLength,
                    uint16_t wRxBufSize,
                    uint8_t * pRxBuffer,
                    uint16_t * pRxLength);
uint8_t spi_transceive(
                    uint8_t * pTxBuffer,
                    uint16_t wTxLength,
                    uint8_t * pRxBuffer,
                    uint16_t * pRxLength);
uint8_t DEV_ReadSR(uint8_t sr);
void DEV_WriteSR(uint8_t sr, uint8_t value);

#endif /* USER_DRIVER_INC_USER_SPI_DRIVER_H_ */
